
package modul.data.login;

import javax.swing.ImageIcon;
import modul.cetaklaporan.denda.formLaporanDenda;
import modul.cetaklaporan.keuangan.formLaporanKeuangan;
import modul.data.gantipassword.formGantiPassword;
import modul.data.lihataktifitas.formAktifitas;
import modul.pencatatan.dataoperator.formPencatatanOperator;


public class OwnerHome extends javax.swing.JFrame {

    /** Creates new form OwnerHome */
    public OwnerHome() {
        this.initComponents();
        this.setLocationRelativeTo(this);
        this.setIconImage(new ImageIcon(getClass().getResource("/modul/util/image/vcd.png")).getImage());
        this.setTitle("Rental Emovie (Owner:::admin)");
        this.formLaporanDenda = new formLaporanDenda();
        this.formLaporanDenda.setVisible(false);
        this.jDesktopPane1.add(formLaporanDenda);
        this.formLaporanKeuangan = new formLaporanKeuangan();
        this.formLaporanKeuangan.setVisible(false);
        this.jDesktopPane1.add(formLaporanKeuangan);
        this.formGantiPassword = new formGantiPassword();
        this.formGantiPassword.setVisible(false);
        this.jDesktopPane1.add(formGantiPassword);
        this.formAktifitas = new formAktifitas();
        this.formAktifitas.setVisible(false);
        this.jDesktopPane1.add(formAktifitas);
        this.formPencatatanOperator = new formPencatatanOperator();
        this.formPencatatanOperator.setVisible(false);
        this.jDesktopPane1.add(formPencatatanOperator);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jToolBar1 = new javax.swing.JToolBar();
        bLaporanKeuangan = new javax.swing.JButton();
        bLaporanDenda = new javax.swing.JButton();
        bGantiPassword = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jDesktopPane1 = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        miLogout = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        miDataOperator = new javax.swing.JMenuItem();
        miAktifitasOperator = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        miAbout = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);

        bLaporanKeuangan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/Notepad.png"))); // NOI18N
        bLaporanKeuangan.setText("Laporan Keuangan");
        bLaporanKeuangan.setFocusable(false);
        bLaporanKeuangan.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bLaporanKeuangan.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bLaporanKeuangan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bLaporanKeuanganActionPerformed(evt);
            }
        });
        jToolBar1.add(bLaporanKeuangan);

        bLaporanDenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/Sheet_of_paper.png"))); // NOI18N
        bLaporanDenda.setText("Laporan Denda");
        bLaporanDenda.setFocusable(false);
        bLaporanDenda.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bLaporanDenda.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bLaporanDenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bLaporanDendaActionPerformed(evt);
            }
        });
        jToolBar1.add(bLaporanDenda);

        bGantiPassword.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/Gears.png"))); // NOI18N
        bGantiPassword.setText("Ganti Password");
        bGantiPassword.setFocusable(false);
        bGantiPassword.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bGantiPassword.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bGantiPassword.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bGantiPasswordActionPerformed(evt);
            }
        });
        jToolBar1.add(bGantiPassword);

        jPanel1.setLayout(new java.awt.BorderLayout());

        jDesktopPane1.setBackground(new java.awt.Color(153, 204, 255));
        jPanel1.add(jDesktopPane1, java.awt.BorderLayout.CENTER);

        jMenu1.setText("File");

        miLogout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        miLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/lightbulb_delete.png"))); // NOI18N
        miLogout.setText("Logout                             ");
        miLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                miLogoutActionPerformed(evt);
            }
        });
        jMenu1.add(miLogout);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Operator");

        miDataOperator.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.SHIFT_MASK));
        miDataOperator.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/user_edit.png"))); // NOI18N
        miDataOperator.setText("Data Operator                              ");
        miDataOperator.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                miDataOperatorActionPerformed(evt);
            }
        });
        jMenu2.add(miDataOperator);

        miAktifitasOperator.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_MASK));
        miAktifitasOperator.setText("Aktifitas Login");
        miAktifitasOperator.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                miAktifitasOperatorActionPerformed(evt);
            }
        });
        jMenu2.add(miAktifitasOperator);

        jMenuBar1.add(jMenu2);

        jMenu4.setText("Help");

        miAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK));
        miAbout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/modul/util/image/contact_email.png"))); // NOI18N
        miAbout.setText("About                              ");
        miAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                miAboutActionPerformed(evt);
            }
        });
        jMenu4.add(miAbout);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void miLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miLogoutActionPerformed
    new FormLogin().setVisible(true);
    this.dispose();
}//GEN-LAST:event_miLogoutActionPerformed

private void miAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miAboutActionPerformed
    java.awt.EventQueue.invokeLater(new Runnable() {

        @Override
        public void run() {
            formAbout dialog = new formAbout(new javax.swing.JFrame(), true);
            dialog.setVisible(true);
        }
    });
}//GEN-LAST:event_miAboutActionPerformed

private void bLaporanKeuanganActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLaporanKeuanganActionPerformed
    formLaporanKeuangan.setVisible(true);
}//GEN-LAST:event_bLaporanKeuanganActionPerformed

private void bLaporanDendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bLaporanDendaActionPerformed
    formLaporanDenda.setVisible(true);
}//GEN-LAST:event_bLaporanDendaActionPerformed

private void bGantiPasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bGantiPasswordActionPerformed
    formGantiPassword.setVisible(true);
}//GEN-LAST:event_bGantiPasswordActionPerformed

private void miAktifitasOperatorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miAktifitasOperatorActionPerformed
    formAktifitas.setVisible(true);
}//GEN-LAST:event_miAktifitasOperatorActionPerformed

private void miDataOperatorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miDataOperatorActionPerformed
    formPencatatanOperator.setVisible(true);
}//GEN-LAST:event_miDataOperatorActionPerformed
    private formGantiPassword formGantiPassword;
    private formLaporanDenda formLaporanDenda;
    private formLaporanKeuangan formLaporanKeuangan;
    private formAktifitas formAktifitas;
    private formPencatatanOperator formPencatatanOperator;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bGantiPassword;
    private javax.swing.JButton bLaporanDenda;
    private javax.swing.JButton bLaporanKeuangan;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JMenuItem miAbout;
    private javax.swing.JMenuItem miAktifitasOperator;
    private javax.swing.JMenuItem miDataOperator;
    private javax.swing.JMenuItem miLogout;
    // End of variables declaration//GEN-END:variables
}
